﻿using System;
using System.Linq;
using PagedList;

namespace Mini.Data
{
    public interface IReponsitory<T>
    {
        void AddOrUpdate(T t);
        void Delete(T t);
        void DeleteAllData();
        IPagedList<T> GetList(int pageIndex, int pageSize, Func<IQueryable<T>, IOrderedQueryable<T>> orderbyFunc = null);
        T Get(Func<T, bool> where = null, Func<IQueryable<T>, IOrderedQueryable<T>> orderbyFunc = null);
    }
}
